Printing apparatus and control method

ABSTRACT

Each of a first image processing unit and a second image processing unit is configured to generate print data to be used by a printing unit based on image data generated by a controller. The controller comprises a transmission control unit configured to select, based on a sheet size which is a print setting corresponding to a print job as a condition, one of first transmission control of controlling a transmission unit to alternately transmit band data included in first image data and band data included in second image data and second transmission control of controlling the transmission unit so that the band data included in the second image data will be transmitted after the band data included in the first image data has been transmitted.

BACKGROUND OF THE INVENTION Field of the Invention

The present invention relates to a printing apparatus for printing basedon image data and a control method.

Description of the Related Art

A printing apparatus performs an operation to increase the processingspeed until image data is converted into print data which is to be usedfor printing by the printhead, and parallel processing is known as atechnique for performing such an operation. Japanese Patent Laid-OpenNo. 2016-198967 discloses a technique in which image data is dividedinto predetermined areas and sets of image data of the predeterminedareas are distributed among two ASICs for image processing. Furthermore,it is disclosed in Japanese Patent Laid-Open No. 2016-198967 that thepredetermined area is set for the image data in correspondence with anozzle controlled by each ASIC for image processing.

In a case in which image data is to be transmitted to each of aplurality of external image processing units on a band basis, theprocessing load will increase for a controller, formed by ASIC or thelike and on the image data transmission side, depending on conditionssuch as the capacity of a buffer memory and the performance of adecoder. Hence, there is a need to appropriately control thetransmission of image data to a plurality of image processing units.Japanese Patent Laid-Open No. 2016-198967, however, does not disclosehow segmented image data can be transmitted to two ASICs for imageprocessing.

SUMMARY OF THE INVENTION

An aspect of the present invention is to eliminate the above-mentionedproblems with the conventional technology. The present inventionprovides a printing apparatus that appropriately controls transmissionof image data to a plurality of image processing units and a controlmethod.

The present invention in one aspect provides a printing apparatuscomprising: a controller configured to generate image data based on aprint job; and a first image processing unit and a second imageprocessing unit each of which is configured to generate print data to beused by a printing unit based on the image data generated by thecontroller, wherein the controller comprises a transmission unitconfigured to transmit, from the image data, first image data which isto be a processing target area of the first image processing unit to thefirst image processing unit, and to transmit second image data which isto be a processing target area of the second image processing unit tothe second image processing unit, and a transmission control unitconfigured to select, based on a sheet size which is a print settingcorresponding to the print job as a condition, one of first transmissioncontrol of controlling the transmission unit to alternately transmitband data included in the first image data and band data included in thesecond image data and second transmission control of controlling thetransmission unit so that the band data included in the second imagedata will be transmitted after the band data included in the first imagedata has been transmitted.

According to the present invention, transmission of image data to aplurality of image processing units can be appropriately controlled.

Further features of the present invention will become apparent from thefollowing description of exemplary embodiments with reference to theattached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a view showing the arrangement of a printing apparatus in astandby state;

FIG. 2 is a block diagram showing the control arrangement of theprinting apparatus;

FIG. 3 is a view showing the arrangement of the printing apparatus in aprint state;

FIG. 4 is a block diagram showing the arrangement of a controller unitand a print engine unit;

FIG. 5 is a flowchart showing processing performed from print jobreception to image data storage;

FIG. 6 is a flowchart showing image data transfer control processing;

FIGS. 7A and 7B are views for explaining alternate transfer andsequential transfer, respectively;

FIG. 8 is a view for explaining alternate transfer;

FIG. 9 is a view for explaining sequential transfer; and

FIG. 10 is a flowchart showing transfer method determination processing.

DESCRIPTION OF THE EMBODIMENTS

Preferred embodiments of the present invention will now be describedhereinafter in detail, with reference to the accompanying drawings. Itis to be understood that the following embodiments are not intended tolimit the claims of the present invention, and that not all of thecombinations of the aspects that are described according to thefollowing embodiments are necessarily required with respect to the meansto solve the problems according to the present invention. Note that thesame reference numerals denote the same components, and a descriptionthereof will be omitted.

FIG. 1 is a view showing the internal arrangement of an inkjet printingapparatus 1 (to be referred to as a printing apparatus 1 hereinafter)used in this embodiment. In FIG. 1, the X direction, the Y direction(direction perpendicular to a sheet surface), and the Z directionindicate a horizontal direction, a direction in which orifices arearrayed in a printhead 8 (to be described later), and a verticaldirection, respectively.

The printing apparatus 1 is a multi-function peripheral that includes aprinting unit 2 and a scanner unit 3, and can execute various kinds ofprocessing related to a printing operation and a reading operation inthe printing unit 2 and the scanner unit 3 individually orcooperatively. The scanner unit 3 includes an ADF (automatic documentfeeder) and an FBS (flatbed scanner), can read an original which isautomatically fed by the ADF, and can read (scan) an original placed ona document table of the FBS by a user. Note that although the printingapparatus 1 is a multi-function peripheral having the printing unit 2and the scanner unit 3 in this embodiment, it may not include thescanner unit 3. FIG. 1 shows a standby state in which neither theprinting operation nor the reading operation is executed by the printingapparatus 1.

In the printing unit 2, a first cassette 5A and a second cassette 5B forcontaining print media (cut sheets) S are installed in a detachablemanner in a bottom portion of a housing 4 in a vertically downwarddirection. Comparatively small print media of sizes up to A4 size arestacked and contained in the first cassette 5A, and comparatively largeprint media of sizes up to A3 size are stacked and contained in thesecond cassette 5B. A first feeding unit 6A configured to separate andfeed the contained print media sheet by sheet is provided near the firstcassette 5A. In the same manner, a second feeding unit 6B is providednear the second cassette 5B. Each print medium S is selected and fedfrom one of the cassettes when a printing operation is to be performed.

Conveyance rollers 7, a discharge roller 12, pinch rollers 7 a, spurs 7b, a guide 18, an inner guide 19, and a flapper 11 are conveyancemechanisms for guiding the print medium S in a predetermined direction.The conveyance rollers 7 are arranged on the upstream side of theprinthead 8 and are driving rollers driven by a conveyance motor (notshown). The pinch rollers 7a are driven rollers that nip and rotate theprint medium S together with the conveyance rollers 7. The dischargeroller 12 is arranged on the downstream side of the printhead 8 and is adriving roller driven by a conveyance motor (not shown). The spurs 7 bsupportively hold and convey the print medium S together with thedischarge roller 12.

The guide 18 is arranged in the conveyance path of the print medium Sand guides the print medium S in a predetermined direction. The innerguide 19 is a member extending in the Y direction, has a curved sidesurface, and guides the print medium S along the side surface. Theflapper 11 is a member for switching the conveyance direction of theprint medium S when a double-sided printing operation is to beperformed. A discharge tray 13 is a tray for stacking and holding eachprint medium S that has undergone the printing operation and has beendischarged by the discharge roller 12.

The printhead 8 according to this embodiment is a full-line-type colorinkjet printhead. In in a full-line-type printhead, a plurality oforifices for discharging ink in accordance with print data in numbercorresponding to a length at least equal to or more than the width ofthe print medium S are arranged along the Y direction in FIG. 1. Whenthe printhead 8 is in a standby position, an orifice surface 8 a of theprinthead 8 is capped by a cap unit 10 as shown in FIG. 1. When aprinting operation is to be performed, a print controller 202 (to bedescribed later) will change the direction of the printhead 8 so theorifice surface 8 a will face a platen 9. The platen 9 is formed by aflat board extending in the Y direction, and supports the print mediumS, which is to undergo a printing operation by the printhead 8, from theback surface of the print medium. The movement of the printhead 8 fromthe standby position to a printing position will be described later.

Ink tank units 14 individually store four color inks to be supplied tothe printhead 8. An ink supply unit 15 is arranged in the middle of achannel connecting the ink tank units 14 and the printhead 8 and adjuststhe pressure and the flow rate of ink in the printhead 8 so the pressureand the flow rate will fall within appropriate ranges. This embodimentadopts a circulation-type ink supply system, and the ink supply unit 15adjusts the pressure of the ink supplied to the printhead 8 and the flowrate of the ink collected from the printhead 8 so they will fall withinpredetermined ranges.

A maintenance unit 16 includes the cap unit 10 and a wiping unit 17 andperforms a maintenance operation on the printhead 8 by causing theseunits to operate at a predetermined timing. The maintenance operationwill be described in detail later.

FIG. 2 is a block diagram showing the control arrangement of theprinting apparatus 1. The control arrangement is mainly formed by aprint engine unit 200 configured to generally control the printing unit2, a scanner engine unit 300 configured to generally control the scannerunit 3, and a controller unit 100 configured to generally control theoverall printing apparatus 1. The print controller 202 controls thevarious kinds of mechanisms of the print engine unit 200 under theinstruction of a main controller 101 of the controller unit 100. Thevarious kinds of mechanisms of the scanner engine unit 300 arecontrolled by the main controller 101 of the controller unit 100. Thecontrol arrangement will be described in detail hereinafter.

In the controller unit 100, the main controller 101 formed by a CPUcontrols the overall printing apparatus 1 in accordance with programsand various kinds of parameters stored in a ROM 107 while using a RAM106 as a work area. For example, when a print job is input from a hostapparatus 400 via a host I/F 102 or a wireless I/F 103, predeterminedimage processing is performed on the image data received by an imageprocessing unit 108 under the instruction of the main controller 101.The main controller 101 then transmits the image data that has undergonethe image processing operation to the print engine unit 200 via a printengine I/F 105.

Note that the printing apparatus 1 may obtain the image data from thehost apparatus 400 via wireless communication or wired communication ormay obtain image data from an external storage device (USB memory or thelike) connected to the printing apparatus 1. The communication methodused in the wireless communication or the wired communication is notlimited. For example, as a communication method to be used for wirelesscommunication, Wi-Fi® (Wireless Fidelity) or Bluetooth® can be applied.Also as a communication method for wired communication, USB (UniversalSerial Bus) or the like can be applied. In addition, for example, when aread command is input from the host apparatus 400, the main controller101 transmits this command to the scanner unit 3 via a scanner engineI/F 109.

An operation panel 104 is a mechanism for the user to make an inputto/output from the printing apparatus 1. The user can instruct anoperation such as copying, scanning, and the like, set a print mode, andrecognize the information of the printing apparatus 1 via the operationpanel 104.

In the print engine unit 200, the print controller 202 formed by a CPUcontrols the various kinds of mechanisms included in the printing unit 2in accordance with the programs and various kinds of parameters storedin a ROM 203 while using a RAM 204 as a work area. When various kinds ofcommands and image data are received via a controller I/F 201, the printcontroller 202 temporarily stores these pieces of information in the RAM204. The print controller 202 causes each image processing controller205 to convert the stored image data into print data so that the imagedata can be used in the printing operation by the printhead 8. When theprint data is generated, the print controller 202 causes the printhead 8to execute a printing operation based on the print data via a printheadI/F 206. At this time, the print controller 202 conveys the print mediumS by driving the feeding units 6A and 6B, the conveyance rollers 7, thedischarge roller 12, and the flapper 11 via a conveyance control unit207 shown in FIG. 1. Print processing is performed by executing theprinting operation by the printhead 8 cooperatively with the conveyanceoperation of the print medium S under the instruction of the printcontroller 202.

A carriage control unit 208 changes the direction and the position ofthe printhead 8 in accordance with the operation state such as themaintenance state and the printing state of the printing apparatus 1. Anink supply control unit 209 controls the ink supply unit 15 so that thepressure of ink supplied to the printhead 8 will fall within anappropriate range. A maintenance control unit 210 controls the operationof the cap unit 10 and the wiping unit 17 in the maintenance unit 16when a maintenance operation is to be performed on the printhead 8.

In the scanner engine unit 300, the main controller 101 controls thehardware resource of a scanner controller 302 in accordance withprograms and various kinds of parameters stored in the ROM 107 whileusing the RAM 106 as a work area. As result, the various kinds ofmechanisms included in the scanner unit 3 are controlled. For example,when the main controller 101 controls the hardware resource in thescanner controller 302 via a controller I/F 301, an original that hasbeen loaded onto the ADF by the user is conveyed via a conveyancecontrol unit 304 and read by a sensor 305. Subsequently, the scannercontroller 302 stores the read image data in a RAM 303. Note that byconverting the image data obtained in the above-described manner intothe print data, the print controller 202 can cause the printhead 8 toexecute a printing operation based on the image data read by the scannercontroller 302.

FIG. 3 shows the printing apparatus 1 in the print state. Compared tothe standby state shown in FIG. 1, the cap unit 10 is spaced apart fromthe orifice surface 8 a of the printhead 8, and the orifice surface 8 ais facing the platen 9. In this embodiment, the plane of the platen 9has a tilt of 45° with respect to the horizontal direction, and theorifice surface 8 a of the printhead 8 at the printing position also hasa tilt of 45° with respect to the horizontal direction so that itsdistance to the platen 9 will be kept constant.

When the printhead 8 is to be moved from the standby position shown inFIG. 1 to the printing position shown in FIG. 3, the print controller202 uses the maintenance control unit 210 to lower the cap unit 10 to aretreat position shown in FIG. 3. As a result, the orifice surface 8 aof the printhead 8 is spaced apart from the from a cap member (notshown). Subsequently, the print controller 202 uses the carriage controlunit 208 to rotate the printhead by 45° while adjusting the height ofthe printhead 8 in the vertical direction, causing the orifice surface 8a to face the platen 9. When the printing operation has been completedand the printhead 8 is to move from the printing position to the standbyposition, the print controller 202 will perform the above-describedoperation in reverse.

The conveyance path of the print medium S in the printing unit 2 will bedescribed next. When a print command is input, the print controller 202will first use the maintenance control unit 210 and the carriage controlunit 208 to move the printhead 8 to the printing position shown in FIG.3. Subsequently, the print controller 202 will use the conveyancecontrol unit 207 to supply the print medium S by driving one of thefirst feeding unit 6A and the second feeding unit 6B in accordance withthe print command.

In this embodiment, the print engine unit 200 includes a plurality ofimage processing controllers 205. Image data generated in the controllerunit 100 is divided, and parallel image processing is performed in theplurality of image processing controllers 205. In addition, during thattime, image data transfer is performed by switching the image datatransfer method to each of the image processing controllers 205 inaccordance with the sheet size and the print resolution.

<Arrangement of Printing Apparatus>

FIG. 4 is a block diagram showing the control arrangement of theprinting apparatus 1 according to this embodiment. As shown in FIG. 4,the printing apparatus 1 includes the controller unit 100 and the printengine unit 200 including a first image processing controller 410, asecond image processing controller 417, and a print control controller424 (printing unit). The first image processing controller 410 and thesecond image processing controller 417 correspond to the imageprocessing controllers 205 shown in FIG. 2. In this manner, the printingapparatus 1 according to this embodiment will be described as includingfour controllers as an example of its arrangement. Among these, thecontroller unit 100 functions as a main controller unit that generatesimage data which is to undergo image processing in the first imageprocessing controller 410 and the second image processing controller417. In addition, the first image processing controller 410 and thesecond image processing controller 417 function as sub-controllers forthe controller unit 100.

The controller unit 100 executes, based on the input print job,processing to generate image data processable by the first imageprocessing controller 410 and the second image processing controller417. For example, a controller image processing unit 403 of thecontroller unit 100 generates image data corresponding to a pageincluded in page description language (to be referred to as PDLhereinafter) data based on the PDL transmitted from the host apparatus400 via a host I/F control unit 402. Also, for example, the controllerimage processing unit 403 will generate image data corresponding to thenumber of scanned sheets based on scan data transmitted from the scannerengine unit 300 via a scanner I/F control unit 404. An encoder controlunit 407 of the controller unit 100 controls an encoder to encode theimage data generated in the controller image processing unit 403. As aresult, compressed data is generated and temporarily stored in a RAM408. Compressed data temporarily stored in the RAM 408 is regeneratedinto image data by a decoder control unit 406 which controls a decoderto decode the compressed data, and the decoded data is stored in the RAM408. Note that in this embodiment, the decoder controlled by the decodercontrol unit 406 is a decoder that cannot execute partial decoding. Anexplanation of partial decoding will be given later. Furthermore, theimage data is divided so that image data belonging to a processingtarget area of the first image processing controller 410 will betransmitted to the first image processing controller 410 and image databelonging to a processing target area of the second image processingcontroller 417 will be transmitted to the second image processingcontroller 417. An area in the RAM 408 where the transmission targetimage data is stored will be called a transmission buffer areahereinafter.

The image data stored in the transmission buffer area is transmitted tothe first image processing controller 410 via an inter-ASIC I/F controlunit 405 and stored in a RAM 415 of the first image processingcontroller 410. An area in each of the RAM 415 and a RAM 422 where thereceived image data is stored will be referred to as a reception bufferarea hereinafter. Note that in this embodiment, the inter-ASIC I/F is aPCI Express (PCIe) interface, and each inter-ASIC I/F control unit willperform protocol processing and DMA control in the PCIe interface.

A CPU 411 of the first image processing controller 410 determineswhether the image data stored in the reception buffer area of the RAM415 is image data that should undergo print data generation processingfor generating print data in the first image processing controller 410.As a result, if it is determined that the image data is image data thatshould undergo the print data generation processing in first imageprocessing controller 410, the CPU 411 will instruct an image processingunit 414 to generate print data based on the image data stored in thereception buffer area of the RAM 415. On the other hand, if it isdetermined that the image data is not image data that should undergo theprint data generation processing in first image processing controller410, the CPU will transmit the image data stored in the reception bufferarea of the RAM 415 to the second image processing controller 417 via aninter-ASIC I/F control unit 413. This image data is stored in thereception buffer area of the RAM 422 of the second image processingcontroller 417.

The print data generated by the image processing unit 414 based on theimage data stored in the reception buffer area of the RAM 415 is storedin the RAM 415. Assume that an area in each of the RAM 415 and the RAM422 where the print data is stored will be referred to as a print bufferarea hereinafter. The print data stored in the print buffer area of theRAM 415 is transmitted to the second image processing controller 417 viathe inter-ASIC I/F control unit 413 and stored in the print buffer areaof the RAM 422.

An image processing unit 421 of the second image processing controller417 generates print data based on the image data stored in the receptionbuffer area of the RAM 422. The print data generated in the imageprocessing unit 421 is stored in the print buffer area of the RAM 422.As described above, since print data that has been generated by thefirst image processing controller 410 is also stored in the print bufferarea of the RAM 422, print data corresponding to data of one page willbe ultimately generated in the print buffer area.

Each of the first image processing controller 410 and the second imageprocessing controller 417 has an image processing unit, and theprocessing target area of image data that is to undergo the print datageneration processing differs for each image processing unit. Hence,these image processing units can independently operate in parallel toeach other.

When print data corresponding to data of one page has been generated inthe print buffer area of the RAM 422, a CPU 418 notifies the printcontrol controller 424 of the start of the printing operation based onthe print data corresponding to data of one page. After thenotification, the CPU 418 transmits the print data stored in the printbuffer area of the RAM 422 to the print control controller 424 via aninter-ASIC I/F control unit 420. The print data transmitted to the printcontrol controller 424 is stored in the RAM 428.

After receiving the printing start notification from the second imageprocessing controller 417, the print control controller 424 receives theprint data and stores the received print data in a RAM 428.Subsequently, an HV conversion processing unit 427 executes HVconversion processing on the print data stored in the RAM 428. The printdata sorted by the HV conversion processing is stored again in the RAM428. A print control unit 426 controls the printing operation of formingan image on a print medium such as a sheet by transmitting the printdata, which has been stored in the RAM 428 after undergoing the HVconversion processing, to the printhead 8.

<Series of Processes Executed by Controller Unit from Input of Print Jobto Storage of Compressed Data>

FIG. 5 is a flowchart showing processing executed in the controller unit100 from print job input to compressed data storage. In step S501, thehost I/F control unit 402 receives PDL data from the host apparatus 400.Alternatively, the scanner I/F control unit 404 receives scan data fromthe scanner engine unit 300. In step S502, CPU 401 analyzes the receivedprint job. Various kinds of settings to be used in the printing areobtained in this analysis. For example, print settings such as thenumber of pages, the number of copies, the sheet size, the printresolution, and color or monochrome setting are obtained.

In step S503, the CPU 401 determines whether data corresponding to allof the pages obtained in step S502 is already stored in a spool buffer.If storage of the data corresponding to all of the pages has not beencompleted (NO in step S503), the encoder control unit 407 generates, instep S504, image data from the print job based on the print settingsobtained in step S502. Note that image data of a size (pixel count)corresponding to the sheet size and print resolution included in theprint settings will be generated in step S504. That is, the size of theimage data to be generated in step S504 will increase since the pixelcount necessary for the printing operation will increase the higher theprint resolution is or the larger the sheet size is. In step S505, theencoder control unit 407 encodes the image data generated in step S504and stores the encoded image data in the spool buffer. In step S503, ifit is determined that the data corresponding to all of the pages whichhas been obtained is already stored in the spool buffer (YES in stepS503), the processing of FIG. 5 ends.

<Image Data Transmission Processing Executed by Controller Unit>

Transmission control processing for controlling twoimage-data-transmission methods (transfer methods) in the controllerunit 100 will be described with reference to FIGS. 7A and 7B. The firsttransmission method will be described first with reference to FIG. 7A.FIG. 7A illustrates a state in which image data is divided while beingstored in a transmission buffer allocated in the RAM 408. Morespecifically, FIG. 7A illustrates a state in which the image data isdivided into data belonging to a processing area (processing targetarea) under the first image processing controller 410 and data belongingto a processing area (processing target area) under the second imageprocessing controller 417, and each of these areas is further divided byN bands. This embodiment will be described by setting the image databelonging to the target processing area of the first image processingcontroller 410 as the first half (band #1 to band #N) of the image data,and the image data belonging to the target processing area of the secondimage processing controller 417 as the second half (band #N+1 to band#2N) of the image data.

In this transfer method, transmission is performed alternately betweenthe processing areas of the respective image processing controllers.That is, at the time of the first transmission, the uppermost band (band#1) in the target processing area of the first image processingcontroller 410 is transmitted. At the time of the second transmission,the uppermost band (band #N+1) in the target processing area of thesecond image processing controller 417 is transmitted. At the time ofthe third transmission, the second band (band #2) from the top in thetarget processing area of the first image processing controller 410 istransmitted. The entire image data can be transmitted by repetitivelyperforming this processing in which sets of data are alternatelytransmitted on a band basis until band #2N. This transfer method will bereferred to as an alternate transfer hereinafter.

In alternate transfer, since transmission is performed between bands ofprocessing areas under the respective image processing controllers,image processing can be executed in parallel between the respectiveimage processing controllers, and thus it becomes possible to improvethe processing speed of the print engine unit 200.

The second transfer method will be described next with reference to FIG.7B. FIG. 7B also illustrates, in the same manner as FIG. 7A, a state inwhich the image data is divided by the processing areas and bands. Thedifference from the alternate transfer method is the transmissionsequence of the bands of the controller unit 100. In this transfermethod, bands are sequentially transmitted from the uppermost band. Thatis, band #1 is transmitted at the time of the first transmission, andband #2 is transmitted at the time of the second transmission. Theentire image data is transmitted by repeating this transmission processfrom the uppermost band until band #2N. This transfer method will bereferred to as sequential transfer hereinafter.

In sequential transfer, the bands of the target processing area of thefirst image processing controller 410 are continuously transferredfirst, and the bands of the target processing area of the second imageprocessing controller 417 are subsequently transferred. Hence, comparedto alternate transfer, the effectiveness of the parallel execution ofthe image processing operations in the respective image processingcontrollers is degraded, and the processing speed of the print engineunit 200 is also reduced.

However, in a case in which the following conditions are satisfied, theprocessing of the controller unit 100 can be executed at a higher speedby sequential transfer than by alternate transfer, and the processingspeeds of the processing by the controller unit 100 and the processingby each image processing controller can be improved.

<Condition 1> A transmission buffer of a size corresponding to imagedata of one page cannot be allocated.

<Condition 2> A decoder cannot perform partial decoding.

Partial decoding will be described here. Partial decoding is a functionthat decodes only an arbitrary band of the image data.

In the case of a decoder that can execute partial decoding, if anarbitrary band is to be decoded, only the time for decoding this bandwill be required. In the case of a decoder that can execute partialdecoding, the processing time required to decode any band will be thetime required to decode one band.

On the other hand, in the case of a decoder that cannot execute partialdecoding, decoding needs to be performed from the uppermost band of theimage data bands even if an arbitrary band is to be decoded. Since thedecoding processing itself will also be performed on bands other thanthe arbitrary band, discarding/deleting of unnecessary data will berequired. In the case of the decoder that cannot execute partialdecoding, a time required to decode an nth band will be the timerequired to decode n bands.

The sequence of the processing performed in the controller unit 100 in acase in which each transfer method is used when the two conditionsdescribed above are satisfied will be described with reference to FIGS.8 and 9. The sequence of the decoding processing performed in the caseof alternate transfer will be described first with reference to FIG. 8.A description will be given by using a case in which the transmissionbuffer corresponds to only one band.

The first band to be transmitted is band #1. Since band #1 is theuppermost band of the image data, the decoder control unit 406 executesdecoding processing on one band to rasterize the band data in thetransmission buffer. Next, the inter-ASIC I/F control unit 405 transmitsthe rasterized band data. The capacity of the decoding area required forthis band transmission is one band.

The second band to be transmitted is band #N+1. Since band #N+1 is aband apart by N bands from band #1 that has been transmitted first, thedecoder control unit 406 restarts the decoding from band #2, executesdecoding processing on N bands to rasterize the decoding band data inthe transmission buffer. Next, the inter-ASIC I/F control unit 405transmits the rasterized band data. The capacity of the decoding arearequired for this band transmission is N bands.

The third band to be transmitted is band #2. Since band #2 is a bandpositioned on an upper side than the band #N+1 that has been transmittedsecond, the decoder control unit 406 causes the decoder to perform theprocessing again from the beginning, execute decoding processing on twobands to rasterize the band data in the transmission buffer. Next, theinter-ASIC I/F control unit 405 transmits the rasterized band data. Thecapacity of the decoding area required for this band transmission is twobands.

Although the illustration has been omitted in FIG. 8, the fourth band tobe transmitted is band #N+2, and the capacity of the decoding arearequired for this band transmission is N bands in the same manner as thesecond band transmission.

When this kind of processing is repeatedly performed until band #2N,decoding needs to be executed for N×N+(1+2+ . . . +N) bands. Therequired decoding area will increase in a quadratic functional manner inaccordance with the increase in the number of bands, and the processingtime will increase in proportion to the decoding area as a result.

Although parallel processing of the image processing controllers ispossible in alternate transfer, the processing speed of the controllerunit 100 will be reduced greatly depending on the processing time of thedecoder, the number of bands, and the size of the transmission buffer ifalternate transfer is performed. In particular, the processing speed ofthe controller unit 100 will be reduced greatly when the image data sizeis large. As a result, the processing speeds of the processing by thecontroller unit 100 and the processing of each image processingcontroller will also be reduced.

The sequence of decoding processing performed in the case of sequentialtransfer will be described next with reference to FIG. 9. A descriptionwill be given by using a case in which the transmission buffercorresponds to only one band in the same manner as FIG. 8.

The first band to be transmitted is band #1. Since band #1 is theuppermost band of the image data, the decoder control unit 406 executesdecoding processing on one band to rasterize the band data in thetransmission buffer. Next, the inter-ASIC OF control unit 405 transmitsthe rasterized band data. The capacity of the decoding area required forthis band transmission is one band.

The second band to be transmitted is band #2. Since band #2 is a bandapart by one band from band #1 that has been transmitted first, thedecoder control unit 406 restarts the decoding processing from band #2,executes decoding processing on one band to rasterize the band data inthe transmission buffer. Next, the inter-ASIC OF control unit 405transmits the rasterized band data. The capacity of the decoding arearequired for this band transmission is one band.

Although the illustration has been omitted in FIG. 9, the third band tobe transmitted is band #3, and the capacity of the band area requiredfor band transmission corresponds to one band when transmission isperformed in the same manner as the second band transmission.

Since decoding processing is required for only 2N bands even if suchprocessing is repeated until band #2N, the decoding processing time canbe suppressed compared to that in the above-described alternatetransfer, and the decoding processing time will be equal to that whenthe transmission buffer can be allocated for image data of one page.

In this case, since parallel processing of the image processingcontrollers cannot be performed in sequential transfer, the processingtime of the print engine unit 200 will increase accordingly compared tothat in the case of alternate transfer. However, since the controllerunit 100 need not perform decoding, discarding, or deleting on a bandother than each decoding target band, speed of the decoding processingwill be higher than that of the decoding processing performed inalternate transfer. Hence, it is possible to prevent a state in whichthe processing speeds of the controller unit 100 and the imageprocessing controllers overall are reduced due to the slowness of theprocessing of the controller unit 100 as in the case of the alternatetransfer method.

That is, depending on the two conditions described above related to thenumber of bands (the size of the image data) and the size of thetransmission buffer, there may be cases in which the overall processingspeeds of the controller unit 100 and the image processing controllerswill be increased by employing alternate transfer or will be increasedby employing sequential transfer. This embodiment switches betweenalternate transfer and sequential transfer in accordance with theconditions. As a result, the transfer method with the higher processingspeed is constantly selected, and the throughput of the overall printingapparatus 1 can be improved.

FIG. 6 is a flowchart showing image data transfer processing executed bythe controller unit.

In step S601, the CPU 401 determines whether all of the pages of theprint job in the print instruction have been printed. If all of thepages have not been printed (NO in step S601), the CPU 401 determines,in step S602, a transfer method based on the print sheet size and theprint resolution included in the print settings obtained in step S502.Although the processing of step S602 will be described in detail later,the transfer method is switched between alternate transfer andsequential transfer based on the print settings including the printsheet size and the print resolution. This kind of processing can preventa state in which the throughput of the printing apparatus 1 is degradeddue to an increase in the decoding area and the processing whenalternate transfer on a band basis is simply executed as described inFIG. 8. If it is determined that all of the pages have been printed (YESin step S601), the processing of FIG. 6 ends.

In step S603, the CPU 401 determines whether the transfer method isalternate transfer. In this embodiment, a state not employing alternatetransfer represents, namely, a state employing sequential transfer. Ifit is determined that the transfer method is not alternate transfer (NOin step S603), the CPU 401 allocates, in step S604, a transmissionbuffer corresponding to a plurality of bands (2N bands) in the RAM 408.

In step S605, the decoder control unit 406 instructs the decoder torasterize image data of one band from the compressed data in thetransmission buffer. In addition, the inter-ASIC I/F control unit 405transfers the band data in the transmission buffer to the first imageprocessing controller 410. In step S605, rasterization and transferringof band data belonging to the target processing area of the first imageprocessing controller 410 are performed.

In step S606, the CPU 401 determines whether there is a band that hasnot been transmitted in the target processing area of the first imageprocessing controller 410. If it is determined that there is a band thathas not been transmitted (YES in step S606), the process returns to stepS605. Otherwise (NO in step S606), the decoder control unit 406 willinstruct, in step S607, the decoder to rasterize image data of one bandfrom the compressed data in the transmission buffer. In addition, theinter-ASIC I/F control unit 405 will transfer the band data in thetransmission buffer to the first image processing controller 410.

In step S607, the second image processing controller 417 executesrasterization of each band belonging to the target processing area ofthe second image processing controller 417. In step S608, the CPU 401determines whether there is a band that has not been transmitted in thetarget processing area of the second image processing controller 417. Ifit is determined that there is a band that has not been transmitted (YESin step S608), the process returns to step S606. Otherwise (NO in stepS608), the process returns to step S601, and the process moves to thetransfer processing for the next page. The processes of steps S604 toS608 correspond to the processes described in FIG. 7B and FIG. 9.

In step S609, if the CPU 401 determines that the transfer method isalternate transfer (YES in step S603), the CPU 401 allocates atransmission buffer of one page in the RAM 408.

In step S610, the decoder control unit 406 instructs the decoder torasterize image data of one page from the compressed data in thetransmission buffer. In step S611, the inter-ASIC OF control unit 405transfers one set of band data belonging to the target processing areaof the first image processing controller 410 to the first imageprocessing controller 410. In step S612, the inter-ASIC OF control unit405 transfers one set of band data belonging to the target processingarea of the second image processing controller 417 to the second imageprocessing controller 417.

In step S613, the CPU 401 determines whether there is a band that hasnot been transmitted among the bands of one page. If it is determinedthat there is a band that has not been transmitted (YES in step S613),the process returns to step S611. Otherwise (NO in step S613), theprocess returns to step S601, and the process moves to the transferprocessing for the next page. The processes of steps S610 to S613correspond to processes described in FIG. 7A and FIG. 8.

In this manner, the degradation of the throughput of the printingapparatus 1 can be prevented by switching the transfer method based onthe print settings.

Transfer method determination processing performed in step S602 of FIG.6 will be described with reference to FIG. 10. FIG. 10 is flowchartshowing the transfer method determination processing. An example inwhich 1200 dpi, 600 dpi, and 300 dpi can be set as the print resolutionsin the printing apparatus 1, and the maximum size of image data that canbe fully rasterized as a page in the transmission buffer corresponds tothe print settings of an A3 sheet size at 600 dpi will be described. Inaddition, the decoder controlled by the decoder control unit 406 isdecoder that cannot execute partial decoding.

As described above, whether the overall processing speeds of thecontroller unit 100 and the image processing controllers will beincreased by employing sequential transfer or by employing alternatetransfer depends on the size of the image data. Also, the higher theprint resolution is and the larger the print sheet size is, the largerthe size of the image data. Hence, in FIG. 10, both the print resolutionand the sheet size are used to select whether to employ sequentialtransfer or alternate transfer as the transfer method.

In step S1001, the CPU 401 determines whether the print resolution is1200 dpi. If it is determined that the print resolution is 1200 dpi (YESin step S1001), the CPU 401 determines, in step S1005, sequentialtransfer as the transfer method and ends the processing of FIG. 10. Onthe other hand, if it is determined that the print resolution is not1200 dpi (NO in step S1001), the CPU 401 determines, in step S1002,whether the print resolution is 600 dpi.

If it is determined that the print resolution is 600 dpi (NO in stepS1002), the CPU 401 determines, in step S1003, whether the print sheetsize is larger than A3. If it is determined that the print sheet size islarger than A3 (YES in step S1003), the CPU 401 determines, in stepS1005, to employ sequential transfer as the transfer method and ends theprocessing of FIG. 10. If it is determined that the print sheet size isequal to or less than A3 (NO in step S1003), the CPU 401 determines, instep S1004, to employ alternate transfer as the transfer method and endsthe processing of FIG. 10. Note that although the determination isperformed based on the sheet size in step S1003, it may be set so thatthe determination will be made based on whether the buffer memory sizeis equal to or more than a threshold. In such a case, the data size canbe obtained from the sheet size and the print resolution set in theprint settings, and the obtained value can be compared to the threshold.

In step S1002, if it is determined that the print resolution is not 600dpi (NO in step S1002), the CPU 401 will determine to employ alternatetransfer as the transfer method and ends the processing of FIG. 10.

As shown in FIG. 10, the transfer method can be selected by making adetermination based on the combination of the print resolution and thesheet size as the print settings.

Note that although the A3 sheet size at 600 dpi was used as the branchpoint for selecting alternate transfer and sequential transfer in FIG.10, the present invention is not limited to this. For example, thebranch point may be set to various kinds of points in accordance withthe transmission buffer memory capacity of the RAM 408. For example, ifthe RAM 408 has a small capacity, it may be set so that alternatetransfer will be employed only when 300 dpi is set, or if the RAM 408has a sufficiently large capacity, it may be set so that A3 size at 1200dpi will be used as the branch point.

Furthermore, alternate transfer is not limited to a case in whichtransfer is alternately performed band by band from the area of band #1to band #N and the area of band #N+1 to band #2N shown in FIG. 7A. Forexample, it may be applied to a case in which a plurality of bands arealternately transferred from the two areas described above.

The above-described embodiment described an example in which image datacorresponding to one page is divided between the respective processingareas of two image processing controllers, and each divided set of imagedata is transmitted to a corresponding one of the image processingcontrollers. However, the present invention is not limited to two imageprocessing controllers, and the same arrangement can also be employed ina case in which there are more than two, that is, a plurality of (N)image processing controllers. For example, it may have an arrangement inwhich image data corresponding to one page is divided among therespective processing areas of three image processing controllers andeach set of divided image data is transmitted to the corresponding oneof the image processing controllers. For example, band #1 to band #3 canbe the target processing area of an image processing controller A, band#4 to band #6 can be the target processing area of an image processingcontroller B, and band #7 to band #9 can be the target processing areaof an image processing controller C.

“Alternate transfer” has been described for a case in which two imageprocessing controllers are to be used. However, in a case in which threeimage processing controllers are to be used, image data belonging to aband of each target processing area will be cyclically transmitted on aband basis in the order of the image processing controller A, the imageprocessing controller B, the image processing controller C, A, B, C . .. . In this case, if the decoder controlled by the decoder control unit406 cannot execute partial decoding, the following operation will beperformed.

(1) The controller unit 100 decodes and transmits band #1 to the imageprocessing controller A. The controller unit 100 decodes the band #2 toband #4 and transmits band #4 to the image processing controller B. Thecontroller unit 100 decodes the band #5 to band #7 and transmits band #7to the image processing controller C.

(2) The controller unit 100 decodes band #1 and band #2 and transmitsband #2 to the image processing controller A. The controller unit 100decodes the band #3 to band #5 and transmits band #5 to the imageprocessing controller B. The controller unit 100 decodes the band #6 toband #8 and transmits band #8 to the image processing controller C.

(3) The controller unit 100 decodes band #1, band #2, and band #3 andtransmits band #3 to the image processing controller A. The controllerunit 100 decodes the band #4 to band #6 and transmits band #6 to theimage processing controller B. The controller unit 100 decodes the band#7 to band #9 and transmits band #9 to the image processing controllerC.

As a result, processing of 3×6+(1+2+3)=24 bands is obtained. On theother hand, in a case in which the “sequential transfer” method isemployed, the following operation will be performed.

(1) The controller unit 100 decodes and transmits band #1 to the imageprocessing controller A.

(2) The controller unit 100 decodes and transmits band #2 to the imageprocessing controller A.

Subsequently, the decoding and transmission of one band are repeateduntil “(9) The controller unit 100 decodes and transmits band #9 to theimage processing controller C”, thereby resulting in processing of ninebands.

That is, in the same manner as in a case in which two image processingcontrollers are used, the band processing load of a cyclical transferoperation can be reduced by employing “sequential transfer”.

As described above, according to this embodiment, image data can betransmitted to a plurality of image processing controllers by using anappropriate transmission method. As a result, substantial degradation ofthe throughput of the printing apparatus can be avoided even in a casein which image data of an entire page cannot be stored in thetransmission buffer due to the sheet size and the print resolution.

[Other Embodiments]

Embodiment(s) of the present invention can also be realized by acomputer of a system or apparatus that reads out and executes computerexecutable instructions (e.g., one or more programs) recorded on astorage medium (which may also be referred to more fully as a‘non-transitory computer-readable storage medium’) to perform thefunctions of one or more of the above-described embodiment(s) and/orthat includes one or more circuits (e.g., application specificintegrated circuit (ASIC)) for performing the functions of one or moreof the above-described embodiment(s), and by a method performed by thecomputer of the system or apparatus by, for example, reading out andexecuting the computer executable instructions from the storage mediumto perform the functions of one or more of the above-describedembodiment(s) and/or controlling the one or more circuits to perform thefunctions of one or more of the above-described embodiment(s). Thecomputer may comprise one or more processors (e.g., central processingunit (CPU), micro processing unit (MPU)) and may include a network ofseparate computers or separate processors to read out and execute thecomputer executable instructions. The computer executable instructionsmay be provided to the computer, for example, from a network or thestorage medium. The storage medium may include, for example, one or moreof a hard disk, a random-access memory (RAM), a read only memory (ROM),a storage of distributed computing systems, an optical disk (such as acompact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™),a flash memory device, a memory card, and the like.

While the present invention has been described with reference toexemplary embodiments, it is to be understood that the invention is notlimited to the disclosed exemplary embodiments. The scope of thefollowing claims is to be accorded the broadest interpretation so as toencompass all such modifications and equivalent structures andfunctions.

This application claims the benefit of Japanese Patent Application No.2018-045929, filed Mar. 13, 2018, which is hereby incorporated byreference herein in its entirety.

What is claimed is:
 1. A printing apparatus comprising: a controllerconfigured to generate image data based on a print job; and a firstimage processing unit and a second image processing unit each of whichis configured to generate print data to be used by a printing unit basedon the image data generated by the controller, wherein the controllercomprises a transmission unit configured to transmit, from the imagedata, first image data which is to be a processing target area of thefirst image processing unit to the first image processing unit, and totransmit second image data which is to be a processing target area ofthe second image processing unit to the second image processing unit,and a transmission control unit configured to select, based on a sheetsize which is a print setting corresponding to the print job as acondition, one of first transmission control of controlling thetransmission unit to alternately transmit band data included in thefirst image data and band data included in the second image data andsecond transmission control of controlling the transmission unit so thatthe band data included in the second image data will be transmittedafter the band data included in the first image data has beentransmitted.
 2. A printing apparatus comprising: a controller configuredto generate image data based on a print job; and a first imageprocessing unit and a second image processing unit each of which isconfigured to generate print data to be used by a printing unit based onthe image data generated by the controller, wherein the controllercomprises a transmission unit configured to transmit, from the imagedata, first image data which is to be a processing target area of thefirst image processing unit to the first image processing unit, and totransmit second image data which is to be a processing target area ofthe second image processing unit to the second image processing unit,and a transmission control unit configured to select, in accordance witha plurality of conditions related to a size of the image data, one offirst transmission control of controlling the transmission unit toalternately transmit band data included in the first image data and banddata included in the second image data and second transmission controlof controlling the transmission unit so that the band data included inthe second image data will be transmitted after the band data includedin the first image data has been transmitted.
 3. The apparatus accordingto claim 2, wherein the plurality of conditions include a conditionrelated to a print resolution and a condition related to sheet sizewhich are print settings corresponding to the print job.
 4. Theapparatus according to claim 3, further comprising a first determinationunit configured to determine whether the print resolution is not lessthan a first threshold, wherein the transmission control unit executesthe second transmission control when the first determination unitdetermines that the print resolution is not less than the firstthreshold.
 5. The apparatus according to claim 4, further comprising asecond determination unit configured to determine whether the sheet sizeis not less than a second threshold, wherein the transmission controlunit executes the second transmission control when the seconddetermination unit determines that the sheet size is not less than thesecond threshold.
 6. The apparatus according to claim 5, wherein thefirst threshold and the second threshold are determined based on a sizeof a buffer memory of the controller.
 7. The apparatus according toclaim 1, wherein the controller further includes a decoder configured todecode encoded image data, the first image data and the second imagedata each are image data decoded by the decoder, and the decoder is adecoder that cannot execute partial decoding.
 8. The apparatus accordingto claim 1, further comprising a printing unit configured to performprinting on a print medium based on the print data generated by thefirst image processing unit and the print data generated by the secondimage processing unit.
 9. A control method executed in a printingapparatus that includes a controller configured to generate image databased on a print job, and a first image processing unit and a secondimage processing unit each of which is configured to generate print datato be used by a printing unit based on the image data generated by thecontroller, wherein the controller transmits, from the image data, firstimage data which is to be a processing target area of the first imageprocessing unit to the first image processing unit, and transmits secondimage data which is to be a processing target area of the second imageprocessing unit to the second image processing unit, and selects, basedon a sheet size which is a print setting corresponding to the print jobas a condition, one of first transmission control of controlling thetransmission to alternately transmit band data included in the firstimage data and band data included in the second image data and secondtransmission control of controlling the transmission so that the banddata included in the second image data will be transmitted after theband data included in the first image data has been transmitted.
 10. Acontrol method executed in a printing apparatus that includes acontroller configured to generate image data based on a print job, and afirst image processing unit and a second image processing unit each ofwhich is configured to generate print data to be used by a printing unitbased on the image data generated by the controller, wherein thecontroller transmits, from the image data, first image data which is tobe a processing target area of the first image processing unit to thefirst image processing unit, and transmits second image data which is tobe a processing target area of the second image processing unit to thesecond image processing unit, and selects, in accordance with aplurality of conditions related to a size of the image data, one offirst transmission control of controlling the transmission toalternately transmit band data included in the first image data and banddata included in the second image data and second transmission controlof controlling the transmission so that the band data included in thesecond image data will be transmitted after the band data included inthe first image data has been transmitted.
 11. The method according toclaim 10, wherein the plurality of conditions include a conditionrelated to a print resolution and a condition related to sheet sizewhich are print settings corresponding to the print job.
 12. The methodaccording to claim 11, further comprising: determining whether the printresolution is not less than a first threshold; and executing the secondtransmission control when the print resolution is determined to be notless than the first threshold.
 13. The method according to claim 12,further comprising: determining whether the sheet size is not less thana second threshold; and executing the second transmission control whenthe sheet size is determined to be not less than the second threshold.14. The method according to claim 13, wherein the first threshold andthe second threshold are determined based on a size of a buffer memoryof the controller.
 15. The method according to claim 9, wherein thecontroller further includes a decoder configured to decode encoded imagedata, the first image data and the second image data each are image datadecoded by the decoder, and the decoder is a decoder that cannot executepartial decoding.
 16. The method according to claim 9, furthercomprising: printing on a print medium based on the print data generatedby the first image processing unit and the print data generated by thesecond image processing unit.